package com.youdian.widget;

import android.animation.Animator;
import android.view.View;

import com.youdian.widget.navbar.CircularRevealLayout;

/**
 * Created by moker on 2017/12/14.
 */

public class ViewAnimationCompatUtils {


    private ViewAnimationCompatUtils(){}

    public static Animator createCircularReveal(final View view,
                                                final int centerX, final int centerY, final float startRadius, final float endRadius) {

        Animator animator = CircularRevealLayout.Builder.on(view)
                .centerX(centerX)
                .centerY(centerY)
                .startRadius(startRadius)
                .endRadius(endRadius)
                .create();

        return animator;

    }

}
